package com.smart.manager.wiki.entities.models;

import com.smart.common.entities.core.BaseLongModel;
import com.smart.manager.wiki.entities.enums.NoticeScope;
import com.smart.manager.wiki.entities.enums.RemindChannel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import java.time.LocalDateTime;

/**
 * 系统管理-消息提醒
 *
 * @author Administrator
 * @TableName system_module
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Accessors(chain = true)
public class WikiIntelRemind extends BaseLongModel {

    @ApiModelProperty("用户群体")
    private NoticeScope scope;

    @ApiModelProperty("提醒渠道")
    private RemindChannel channel;


    @ApiModelProperty("提醒标题")
    private String title;


    @ApiModelProperty("提醒正文")
    private String content;

    @ApiModelProperty("收件人ID")
    private Long recipientId;

    @ApiModelProperty("生成时间")
    private LocalDateTime actionTime;

    @ApiModelProperty("发送时间")
    private LocalDateTime sendTime;


    @ApiModelProperty("阅读时间 非空已读 未空时标识已读")
    private LocalDateTime readTime;


}
